﻿@model AutomatedTestDataManagement.Models.TestSuiteScenario

@{
    ViewBag.Title = "Create";
}

<h2>Add Scenario to Test Suite</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>TestSuiteScenario</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.SuiteID, "TestSuite")
        </div>
        <div class="editor-field">
            @Html.DropDownList("SuiteID", String.Empty)
            @Html.ValidationMessageFor(model => model.SuiteID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ScenarioID, "TestScenario")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ScenarioID", String.Empty)
            @Html.ValidationMessageFor(model => model.ScenarioID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ScenarioNumber)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.ScenarioNumber, new { @Value = ViewBag.ScenarioNumber.ToString() })
            @Html.ValidationMessageFor(model => model.ScenarioNumber)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Add new Test Scenario", "Create", "TestScenario", new { id = ViewBag.SelectedSuiteID }, null)

    @Html.ActionLink("Back to Test Suite", "Edit", "Suite", new { id = ViewBag.SelectedSuiteID }, null)

     @Html.Partial("_TestSuiteNav")

</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
